TimeRange

class TimeRange

A range between two points in UTC Unix Epoch time.

Since

8.8.0

Properties

Link copied to clipboard
The maximum allowed TimeRange between 1970-01-01T00:00:00Z and 9999-12-31T23:59:59Z.

Functions

Link copied to clipboard
open fun between(start: Timestamp, end: Timestamp): TimeRange
Creates TimeRange between two points in time.
Link copied to clipboard
open fun end(): Timestamp
Returns the end point of the time range.
Link copied to clipboard
open fun start(): Timestamp
Returns the start point of the time range.
Link copied to clipboard
open fun startingFrom(start: Timestamp): TimeRange
Creates TimeRange from the start point and to 9999-12-31T23:59:59Z.
Link copied to clipboard
open fun upTo(end: Timestamp): TimeRange
Creates TimeRange from 1970-01-01T00:00:00Z and to the end point.